import QtQuick 1.1
import com.nokia.symbian 1.1
import PictureItem 1.0

SelectionDialog {
    id: root

    signal imageResolutionSize(int size)

    Component.onCompleted: {
        imageSizes.append({modelData:picturePlugin.imageSizeWithResolutionAsString(PictureItem.QVGA),
                              sizeType: PictureItem.QVGA})
        imageSizes.append({modelData:picturePlugin.imageSizeWithResolutionAsString(PictureItem.VGA),
                              sizeType: PictureItem.VGA})
        imageSizes.append({modelData:picturePlugin.imageSizeWithResolutionAsString(PictureItem.SVGA),
                              sizeType: PictureItem.SVGA})
        imageSizes.append({modelData:picturePlugin.imageSizeWithResolutionAsString(PictureItem.XGA),
                              sizeType: PictureItem.XGA})

    }

    titleText: qsTr("Scale selected images to size")

    model:ListModel{
        id: imageSizes
    }

    onSelectedIndexChanged: {
        root.imageResolutionSize(model.get(selectedIndex).sizeType)
    }

}

